import request from '@/utils/request'

// 查询打卡记录列表
export function listClockdetail(query) {
  return request({
    url: '/eqxm/clockdetail/list',
    method: 'get',
    params: query
  })
}

// 查询打卡记录详细
export function getClockdetail(id) {
  return request({
    url: '/eqxm/clockdetail/' + id,
    method: 'get'
  })
}

// 新增打卡记录
export function addClockdetail(data) {
  return request({
    url: '/eqxm/clockdetail',
    method: 'post',
    data: data
  })
}

// 修改打卡记录
export function updateClockdetail(data) {
  return request({
    url: '/eqxm/clockdetail',
    method: 'put',
    data: data
  })
}

// 删除打卡记录
export function delClockdetail(id) {
  return request({
    url: '/eqxm/clockdetail/' + id,
    method: 'delete'
  })
}

// 导出打卡记录
export function exportClockdetail(query) {
  return request({
    url: '/eqxm/clockdetail/export',
    method: 'get',
    params: query
  })
}
